﻿<Views:WindowBase x:Class="SharpTalk.Client.WpfApplication.Views.PasswordView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Resources="clr-namespace:SharpTalk.Client.WpfApplication.Resources"
        xmlns:Controls="clr-namespace:SharpTalk.Client.WpfApplication.Controls"
        MinWidth="200" 
        MinHeight="105"
        mc:Ignorable="d"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:Views="clr-namespace:SharpTalk.Client.WpfApplication.Views" d:DesignHeight="145"
        SizeToContent="WidthAndHeight"
        d:DesignWidth="361"
        Style="{StaticResource MessageViewStyle}" 
        Title="{x:Static Resources:Messages.label_password}">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
            <TextBlock Grid.Row="0" Grid.Column="0" Text="{x:Static Resources:Messages.label_password}" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5,0"/>
            <PasswordBox Grid.Row="0" Grid.Column="1" Name="pwb" Margin="5,0,2,0" MinWidth="200" VerticalAlignment="Center" HorizontalAlignment="Stretch" />

        <Controls:DialogActionsPanel
            Grid.Row="1" 
            Grid.ColumnSpan="2"
            HorizontalAlignment="Right"
            ShowButtonOk="True"
            ShowButtonCancel="True" 
            ButtonOkCommand="{Binding OkCommand}"
            ButtonOkIsDefault="True"/>
    </Grid>
</Views:WindowBase>
